/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.noah.controller;

/**
 *
 * @author lanh.nguyen
 */
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class HelloController {

    @RequestMapping(value="/hello", method= RequestMethod.GET)
    public ModelAndView index() {
       // model.addAttribute("NOAH","chao");
        ModelAndView mav = new ModelAndView("hello","chao", "Noah");
        return mav;
    }  
}